package cn.dxc.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "user")
@ApiModel("用户实体类")
public class User {

    @TableField(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号", example = "0")
    private Integer id;
    @ApiModelProperty(value = "手机号码")
    private String phone;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "公司名称")
    private String companyName;
    @TableLogic
    private Integer deleted;

    @Version
    private Integer Version;

    @ApiModelProperty(value = "创建时间（忽略）")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty(value = "修改时间（忽略）")
    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;
}
